package model;

/**
 * The Cached ComponentState class contains a cached MaterialList.
 * @author hfi411pi
 */
public abstract class Cached extends ComponentState{
	private final MaterialList materials;
	
	/**
	 * Provides the cached MaterialList.
	 * @return the cached MaterialList.
	 */
	public MaterialList getMaterials() {
		return materials;
	}
	
	/**
	 * Cached constructor.
	 * @param master is the ComponentCommon this State is the State of.
	 * @param materials is the cached MaterialList;
	 */
	protected Cached(final ComponentCommon master, final MaterialList materials){
		super(master);
		this.materials = materials;
	}
}